package cn.backpackerxl.model;
import cn.backpackerxl.easyJDBC.annotation.*;
import cn.backpackerxl.easyJDBC.util.JSON;
import cn.backpackerxl.easyJDBC.util.IdType;

import java.util.Date;
/**
 * @Author: backpackerxl
 * CreateTime: 2022/11/24
 * FileName: t_student
 **/
@Table(value="t_student",dev = true,show = true)
public class Student {
	@Id(strategy = IdType.AUTO)
	private int id;
	private String name;
	private int sex;
	private int age;
	private String hobey;
	private Date createTime;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getHobey() {
		return hobey;
	}

	public void setHobey(String hobey) {
		this.hobey = hobey;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	public String toString() {
		return JSON.stringify(this);
	}
}